/**
 * 返回s1字符串中出现任何s2字符串的位置坐标
 */

#include <stdio.h>
#include <string.h>

int any(char s1[], char s2[]);

int main() {
    char s1[] = "Hello, world!";
    char s2[] = "work";
    printf("%s\n%s\n", s1, s2);
    printf("%d\n", any(s1, s2));

    return 0;
}

int any(char s1[], char s2[]) {
    int i, j;
    for (i = 0; i < strlen(s1); i++) {
        for (j = 0; j < strlen(s2); j++) {
            if (s1[i] == s2[j]) {
                return i;
            }
        }
    }
    return -1;
}
